package com.fcscs.cservice.domain;

import java.sql.Time;

import com.fcscs.core.domain.HistoricalEntity;
import com.fcscs.cservice.common.CServiceCommonEnums.ModuleEnum;
import com.fcscs.cservice.common.CServiceCommonEnums.PriceCategoryCodeEnum;
import com.fcscs.cservice.common.CServiceCommonEnums.VersionEntityTypeEnum;

public class InRoomCategory extends HistoricalEntity implements VersionableEntity {

	private static final long serialVersionUID = 1L;

	private String name;
	private String nameSecLang;
	private String nameThdLang;
	private String description;
	private String descriptionSecLang;
	private String descriptionThdLang;
	private Time availableFrom;
	private Time availableTo;
	private Integer level;
	private Integer secBarIconId;
	private Integer smallImageId;
	private Integer largeImageId;
	private Integer mServiceImageId;
	private PriceCategoryCodeEnum priceCategoryEnum;
	private String code;
	private long versionId;
	
	@Override
	public DBLoc getDBLoc() {
		return DBLoc.GUEST;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameSecLang() {
		return nameSecLang;
	}

	public void setNameSecLang(String nameSecLang) {
		this.nameSecLang = nameSecLang;
	}

	public String getNameThdLang() {
		return nameThdLang;
	}

	public void setNameThdLang(String nameThdLang) {
		this.nameThdLang = nameThdLang;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescriptionSecLang() {
		return descriptionSecLang;
	}

	public void setDescriptionSecLang(String descriptionSecLang) {
		this.descriptionSecLang = descriptionSecLang;
	}

	public String getDescriptionThdLang() {
		return descriptionThdLang;
	}

	public void setDescriptionThdLang(String descriptionThdLang) {
		this.descriptionThdLang = descriptionThdLang;
	}

	public Time getAvailableFrom() {
		return availableFrom;
	}

	public void setAvailableFrom(Time availableFrom) {
		this.availableFrom = availableFrom;
	}

	public Time getAvailableTo() {
		return availableTo;
	}

	public void setAvailableTo(Time availableTo) {
		this.availableTo = availableTo;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getSecBarIconId() {
		return secBarIconId;
	}

	public void setSecBarIconId(Integer secBarIconId) {
		this.secBarIconId = secBarIconId;
	}

	public Integer getSmallImageId() {
		return smallImageId;
	}

	public void setSmallImageId(Integer smallImageId) {
		this.smallImageId = smallImageId;
	}

	public Integer getLargeImageId() {
		return largeImageId;
	}

	public void setLargeImageId(Integer largeImageId) {
		this.largeImageId = largeImageId;
	}

	public Integer getmServiceImageId() {
		return mServiceImageId;
	}

	public void setmServiceImageId(Integer mServiceImageId) {
		this.mServiceImageId = mServiceImageId;
	}

	public String getPriceCategory() {
		return this.priceCategoryEnum == null ? null : this.priceCategoryEnum.toString();
	}

	public void setPriceCategory(String priceCategory) {
		this.priceCategoryEnum = (priceCategory == null || "".equals(priceCategory.trim())) ? null
				: PriceCategoryCodeEnum.valueOf(priceCategory);
	}

	public PriceCategoryCodeEnum getPriceCategoryEnum() {
		return priceCategoryEnum;
	}

	public void setPriceCategoryEnum(PriceCategoryCodeEnum priceCategoryEnum) {
		this.priceCategoryEnum = priceCategoryEnum;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public long getVersionId() {
		return versionId;
	}

	public void setVersionId(long versionId) {
		this.versionId = versionId;
	}

	@Override
	public ModuleEnum getModuleEnum() {
		return ModuleEnum.IN_ROOM_DINING;
	}

	@Override
	public VersionEntityTypeEnum getEntityTypeEnum() {
		return VersionEntityTypeEnum.CATEGORY;
	}
	
	@Override
	public Long getEntityId() {
		return getId();
	}
}
